package com.djq.hhc.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;
import com.djq.hhc.model.user.UserInfo;
import com.djq.hhc.result.Result;
import org.springframework.beans.factory.annotation.Autowired;

import java.util.List;
import java.util.Map;

/**
 * Created with IntelliJ IDEA.
 *
 * @Author: dadd7
 * @Date: 2023/02/25/下午 8:43
 * @Description:
 */
public interface UserInfoService extends IService<UserInfo> {

    Result sendMail(String mail);

    Result loginVerification(String email, String code);

    Result updateUserById(UserInfo userInfo);

    Result logoutByToken(String token);

    Result getNowUserWithCredit(String token);

    Result updateNowUser(String token, UserInfo userInfo);
}
